/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lab6ObserverProfe;

/**
 *
 * @author Instructor
 */
class ControlTarjetaCredito {

    static void inhabilitar(TarjetaCredito tc) {
        tc.setHabilitada(false);
        EventoInhabilitacionTarjetaCredito e = new EventoInhabilitacionTarjetaCredito(tc);
        e.addObserver(new Banco());
        e.addObserver(new LogTarjetasInhabilitadas());
        e.notificarInhabilitacion();
    }

}
